package com.atguigu.gmall.common.retryer;

import feign.RetryableException;
import feign.Retryer;

/**
 * @Description
 * @Return
 * @Author https://weiranyi.github.io
 * @Date Created in 2022-12-10 16:17
 **/
public class NeverRetryer implements Retryer {
    @Override
    public void continueOrPropagate(RetryableException e) {
        throw e;
    }

    @Override
    public Retryer clone() {
        return new NeverRetryer();
    }
}
